package com.ds.home.proxy;

import com.alibaba.fastjson.annotation.JSONField;
import com.ds.home.EISensortype;
import com.ds.iot.Sensortype;
import com.ds.iot.enums.ZNodeZType;

public class SensortypeProxy
  implements Sensortype
{
  @JSONField(serialize=false)
  private EISensortype dbSensortype;

  private String icontemp;

  public SensortypeProxy(EISensortype dbSensortype)
  {
    this.dbSensortype = dbSensortype;
 
  }

  public String getHtmltemp()
  {
//    String htmlValue = this.dbSensortype.getHtmltemp();
//    Object obj = JDSActionContext.getActionContext().Par(this.dbSensortype.getHtmltemp());
//    if (obj != null)
//      htmlValue = obj.toString();
//    else {
//      htmlValue = (String)JDSActionContext.getActionContext().Par("vlaue");
//    }
    return this.dbSensortype.getHtmltemp();
  }

  public String getIcon()
  {
    return this.dbSensortype.getIcon();
  }

  public String getIcontemp()
  {

//    Object obj=JDSActionContext.getActionContext().Par(this.dbSensortype.getIcontemp());
//    if (obj!=null){
//      this.icontemp = obj.toString();
//    }
//

    return this.dbSensortype.getIcontemp();
  }

  public String getAlarmurl()
  {
    return this.dbSensortype.getAlarmurl();
  }

  public String getColor()
  {
    return this.dbSensortype.getColor();
  }

  public String getDatalisturl()
  {
    return this.dbSensortype.getDatalisturl();
  }

  public String getDeviceid()
  {
    return this.dbSensortype.getDeviceid();
  }

  public String getHisdataurl()
  {
    return this.dbSensortype.getHisdataurl();
  }

  public String getName()
  {
    return this.dbSensortype.getName();
  }

  public Integer getType()
  {
    return this.dbSensortype.getType();
  }

  @Override
  public void setZnodetype(ZNodeZType type) {
    this.dbSensortype.setZnodetype(type.getType());
  }

  @Override
  public ZNodeZType getZnodetype() {
    return ZNodeZType.fromType(dbSensortype.getZnodetype()!=null?dbSensortype.getZnodetype():ZNodeZType.Other.getType());
  }

  public String getTypeid()
  {
    return this.dbSensortype.getTypeid();
  }

  public void setAlarmurl(String alarmurl) {
    this.dbSensortype.setAlarmurl(alarmurl);
  }

  public void setColor(String color) {
    this.dbSensortype.setColor(color);
  }

  public void setDatalisturl(String datalisturl) {
    this.dbSensortype.setDatalisturl(datalisturl);
  }

  public void setDeviceid(String deviceid) {
    this.dbSensortype.setDeviceid(deviceid);
  }

  public void setHisdataurl(String hisdataurl) {
    this.dbSensortype.setHisdataurl(hisdataurl);
  }

  public void setHtmltemp(String htmltemp) {
    this.dbSensortype.setHtmltemp(htmltemp);
  }

  public void setIcon(String icon) {
    this.dbSensortype.setIcon(icon);
  }

  public void setIcontemp(String icontemp) {
    this.dbSensortype.setIcontemp(icontemp);
  }

  public void setName(String name) {
    this.dbSensortype.setName(name);
  }

  public void setType(Integer type) {
    this.dbSensortype.setType(type);
  }

  public void setTypeid(String typeid) {
    this.dbSensortype.setTypeid(typeid);
  }

}